package com.pipe.servicepipe.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 销售表
 * </p>
 *
 * @author hetao
 * @since 2020-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PipeSell对象", description="销售表")
public class PipeSell implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "sid", type = IdType.ID_WORKER)
    private String sid;

    @TableField("sell_description")
    private String sellDescription;

    private String operator;

    private BigDecimal price;

    @ApiModelProperty(value = "0-不是欠款  1-欠款")
    private Integer isDebt;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifiedTime;

    @TableLogic
    private Integer isDelete;

    private String remarks;


}
